import service from '@/utils/request.js'
// 封装登录请求  '/sys/login'
export const sysLoginRuquest = data => {
  return service({
    method: 'POST',
    url: '/sys/login',
    data
  })
}

// 获取用户基本信息 /sys/profile
export const sysProfileRequest = () => {
  return service({
    method: 'GET',
    url: '/sys/profile'
  })
}

// 修改密码 /sys/user/updatePass
export const sysUserUpdatePass = data => {
  return service({
    method: 'PUT',
    url: '/sys/user/updatePass',
    data
  })
}
